public class TestDriver
{
    public static void run1(){
        DieCup c1 = new DieCup(),c2 = new DieCup();
        
        c1.roll();
        c2.roll();
        
        System.out.println("DieCup1 : "+ c1.getEyes() + " DieCup2 : " + c2.getEyes());
    }
    public static void run2(){
        DieCup c1 = new DieCup(4),c2 = new DieCup(3);
        
        c1.roll();
        c2.roll();
        
        System.out.println("DieCup1 : "+ c1.getEyes() + " DieCup2 : " + c2.getEyes());
    }
    public static void run3(){
        DieCup c1 = new DieCup(3),c2 = new DieCup(4);
        
        int count = 0;
        
        while(true){
            count ++;
            c1.roll();
            c2.roll();
            System.out.println("DieCup1 : "+ c1.getEyes() + " DieCup2 : " + c2.getEyes());
            if(c1.getEyes() > c2.getEyes())
                break;
        }
        System.out.println("Tries taken for cup1 to beat cup2: " + count);
    }
    public static void run4(){
       DieCup c1 = new DieCup(4),c2 = new DieCup(3);
       int c1Res,c2Res, c1WinCount = 0, c2WinCount = 0, tieCount = 0;
       for(int i = 0 ; i < 100 ; i ++){
           c1.roll();
           c2.roll();
           
           c1Res = c1.getEyes();
           c2Res = c2.getEyes();
           
           if(c1Res > c2Res){
                c1WinCount ++;
           }
           if(c2Res > c1Res){
                c2WinCount ++;
           }
           if(c1Res == c2Res){
                tieCount ++;
           }
           
       }
       System.out.println("cup1 had " + c1WinCount + " wins,  \ncup2 had " + c2WinCount + " wins, \nand there were: " + tieCount + " ties!");
    }
}
